import request from "./request"

const adApi = {
    // 分组分页列表
    groupPageList: (data) => {
        return request.post('/admin/content/adGroup/pageList', data)
    },
    // 删除
    delGroup: (ids) => {
        return request.post('/admin/content/adGroup/del', {
            ids
        })
    },
    // 新增
    addGroup: (data) => {
        return request.post('/admin/content/adGroup/add', data)
    },
    // 更新
    updateGroup: (data) => {
        return request.post('/admin/content/adGroup/update', data)
    },

    allAd(data) {
        return request.post('/admin/content/ad/all', data)
    },
    // 新增
    addAd: (data) => {
        return request.post('/admin/content/ad/add', data)
    },
    // 更新
    updateAd: (data) => {
        return request.post('/admin/content/ad/update', data)
    },
    // 删除
    delAd: (ids) => {
        return request.post('/admin/content/ad/del', {
            ids
        })
    },
}

export default adApi